import request from '@/utils/request';
/**
 * 获取所有的用户信息
 */
export const AllUsers = () =>{
  return request({
    url:'/users/AllUsers',
    method:'GET'
  })
}
/**
 * 获取指定年龄段的数量
 */
export const usersAgeNumber = (data) =>{
    return request({
      url:'/users/usersAgeNumber',
      method:'POST',
      data
    })
}
/**
 * 获取所有的订单信息
 */
export const AllCommodityOrders = () =>{
    return request({
      url:'/commodityOrders/allOrders',
      method:'GET'
    })
  }
/**
 * 获取特定时间内订单信息
 */
export const timeCommodityOrders = (data) =>{
    return request({
      url:'/commodityOrders/timeCommodityOrders',
      method:'POST',
      data
    })
  }
/**
 * 获取特定鲜花价钱范围的订单
 */
export const flowerPriceRange = (data) =>{
    return request({
      url:'/commodityOrders/flowerPriceRange',
      method:'POST',
      data
    })
  }
/**
 * 获取所有的鲜花种类
 */
export const AllFlowersType = () =>{
    return request({
      url:'/flowers/typeAll',
      method:'GET'
    })
}
  